package com.system.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.List;

@ApiModel("权限返回对象")
public class RoleVO implements Cloneable{

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("父级id")
    private String pid;

    @ApiModelProperty("标签")
    private String label;

    @ApiModelProperty("url")
    private String url;

    @ApiModelProperty("类型:0=目录,1=菜单")
    private String type;

    @ApiModelProperty("子集")
    private List<RoleVO> children = new ArrayList<>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }


    public List<RoleVO> getChildren() {
        return children;
    }

    public void setChildren(List<RoleVO> children) {
        this.children = children;
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
